package com.iot.ammeter.entity.web.equipment;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备型号
 * </p>
 *
 * @author basil
 * @since 2021-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_equipment_model")
@ApiModel(value = "EquipmentModel对象", description = "设备型号")
public class EquipmentModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键，仅删改查使用")
    @TableId
    private String equipmentModelId;

    @ApiModelProperty(value = "设备具体型号")
    private String equipmentModel;

    @ApiModelProperty(value = "外键，服务商id")
    private String providerId;

    @ApiModelProperty(value = "设备数量")
    private Integer equipmentNumber;

    @ApiModelProperty(value = "安装数量")
    private Integer installedNumber;

    @ApiModelProperty(value = "0表示正常，1表示禁用")
    private Integer equipmentStatus;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
